Skip to main content

BG_PLAY

[[BG_PLAY: path_audio_file]]

hQuestMaster provides two audio channels: the background audio channel (Background) and a second audio channel intended for effects (Effect) that can be used to play audio tracks (in .mp3 format).

This action is used to start playing an audio track (in .mp3 format), specified as the path (on the internet) to the file itself, on the background audio channel. The path must be a complete URL including the protocol, such as https://website_hosting_the_mp3.com/track.mp3

  • Example 1: {[[(1), ON_SHOW(1)]] [[BG_PLAY: path_1]] }

In Example 1 (above), at the beginning of the Quest, the music specified in path_1 will start playing. However, as soon as cell 2 becomes visible, the track specified with path_1 will be stopped.
  • Example 2: {[[(2), ON_SHOW(2)]] [[BG_PLAY: path_2]]}
    {[[(3), ON_DEATH(D3)]] [[BG_STOP]]}

In Example 2 (above), when the heroes enter the room with marker 2, the path_2 track will start playing (e.g., it could be a more dramatic track suggesting an imminent battle, since there is a gargoyle). Upon the death of the gargoyle (monster in cell D3), the track will be stopped.

Attention : The audio volumes of these channels can only be modified by the user through the hQuestMaster settings.